﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dry
{
    public class GeneratorFeedback
    {
        public GeneratorFeedback()
        {
            _exception = null;
            Lines = 0;
            HasError = false;
        }

        private Exception _exception;
        public Exception Exception
        {
            get { return _exception; }
            set
            {
                HasError = value != null;
                _exception = value;
            }
        }
        public int Lines { get; set; }
        public bool HasError { get; set; }
    }
}
